.class public Lcom/waiqin365/lightapp/sku/d/a;
.super Ljava/lang/Object;


# static fields
.field private static b:Lcom/waiqin365/lightapp/sku/d/a;


# instance fields
.field private a:Landroid/content/Context;


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/sku/d/a;->a:Landroid/content/Context;

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/waiqin365/lightapp/sku/d/a;
    .locals 1

    sget-object v0, Lcom/waiqin365/lightapp/sku/d/a;->b:Lcom/waiqin365/lightapp/sku/d/a;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/sku/d/a;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/sku/d/a;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/waiqin365/lightapp/sku/d/a;->b:Lcom/waiqin365/lightapp/sku/d/a;

    :cond_0
    sget-object v0, Lcom/waiqin365/lightapp/sku/d/a;->b:Lcom/waiqin365/lightapp/sku/d/a;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/util/List;)I
    .locals 4

    const/4 v0, 0x0

    if-nez p1, :cond_0

    :goto_0
    return v0

    :cond_0
    move v1, v0

    move v2, v0

    :goto_1
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_4

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->q()Ljava/lang/Boolean;

    move-result-object v3

    if-eqz v3, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->q()Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    if-nez v3, :cond_3

    :cond_1
    add-int/lit8 v2, v2, 0x1

    :cond_2
    :goto_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_3
    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->r()Ljava/lang/Boolean;

    move-result-object v3

    if-eqz v3, :cond_2

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->r()Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_2

    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    :cond_4
    move v0, v2

    goto :goto_0
.end method
